<template>

    <el-row>
        <el-col :span="12">
            <el-form ref="form" :model="form" label-width="80px">
                <el-form-item label="菜单名">
                    <el-input v-model="form.name" placeholder="菜单名"></el-input>
                </el-form-item>
                <el-form-item label="菜单路径">
                    <el-input v-model="form.path" placeholder="菜单路径"></el-input>
                </el-form-item>
                <el-form-item label="菜单图标">
                    <el-input v-model="form.icon" placeholder="菜单图标"></el-input>
                </el-form-item>
                <el-form-item label="是否缓存">
                    <el-select v-model="form.alive" placeholder="是否缓存">
                        <el-option label="否" value="0"></el-option>
                        <el-option label="是" value="1"></el-option>
                    </el-select>
                </el-form-item>
                <el-form-item label="父导航">
                    <el-select v-model="form.parentId" placeholder="父导航">
                        <el-option label="无" value="0"></el-option>
                        <el-option label="首页" value="0"></el-option>
                        <el-option label="分享页" value="1"></el-option>
                    </el-select>
                </el-form-item>
                <el-form-item>
                    <el-button type="primary" @click="submitFunc">立即创建</el-button>
                    <el-button>取消</el-button>
                </el-form-item>
            </el-form>
        </el-col>
        <el-col>
            <div style="height: 1800px"></div>
        </el-col>
    </el-row>
</template>

<script>
    export default {
        name: "menu-add",
        data() {
            return {
                form: {
                    name: "",
                    path: "",
                    icon: "",
                    alive: "",
                    parentId: ''
                }
            }
        },
        methods: {
            submitFunc() {

            }
        }
    }
</script>

<style scoped>

</style>
